using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
public partial class pages_Article :BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ArticleDAO daoArticle = new ArticleDAO();
        IList<Article> artList = new List<Article>();
        int id = int.Parse(Request["id"]);
        artList.Add(daoArticle.GetArticle(id));
        rptArticle.DataSource = artList;
        rptArticle.DataBind();
        if (IsPersolnel)
        {
            if (rptArticle.Items.Count > 0)
            {
                ((Panel)rptArticle.Items[0].FindControl("pnlEdit")).Visible = true;
            }
        }
    }
}
